<script type="text/javascript">
	function Init(){
		alert('HELEL')
		var URI = document.location;
		URI = URI.split('FID=');
		document.getElementById('DRV').innerHTML = 'Your Drive ID is'+URI[1];
	}
	gadgets.util.registerOnLoadHandler(Init);
</script>
<div id="DRV" onClick="alert('My Name Gadget')">Click Me</div>
<script type="text/javascript" src="https://apis.google.com/js/client.js?onload=Init"></script>